package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {


    /**
     * 新增分类
     * @param category
     */
    void insert(Category category);


    Page<Category> page(Category category);

    void update(Category category);

    void deleteById(Long id);

    /**
     * 根据类型进行模糊查询
     * @param type
     * @return
     */
    List<Category> list(Integer type);
}
